package cn.lsnu.modules.check.service;

import cn.lsnu.common.interfacetools.interfaceentity.Page;
import cn.lsnu.common.interfacetools.interfaceservice.BaseService;
import cn.lsnu.modules.check.entity.CheckAddEntity;
import cn.lsnu.modules.check.mapper.CheckNearMapper;
import cn.lsnu.utils.Global;
import cn.lsnu.utils.Guuid;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CheckNearService extends BaseService<CheckAddEntity,CheckNearMapper> {

    @Override
    public void save(CheckAddEntity entity) throws Exception {
        entity.setcheckId(Guuid.uuid());
        super.save(entity);
    }

    @Override
    public CheckAddEntity get(String key) throws Exception {
        return super.get(key);
    }

    @Override
    public CheckAddEntity getEntity(CheckAddEntity entity) throws Exception {
        return super.getEntity(entity);
    }

    @Override
    public List<CheckAddEntity> findList(CheckAddEntity entity) throws Exception {
        return super.findList(entity);
    }

    @Override
    public Page<CheckAddEntity> findPage(CheckAddEntity entity) throws Exception {
        return super.findPage(entity);
    }

    @Override
    public void delete(CheckAddEntity entity) throws Exception {
        super.delete(entity);
    }

    @Override
    public void update(CheckAddEntity entity) throws Exception {
        super.update(entity);
    }
}
